build: Make script interpreter optional
authorBenjamin Otte <otte@redhat.com>
Thu, 30 May 2019 16:34:51 +0000 (18:34 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 30 May 2019 16:34:51 +0000 (18:34 +0200)
Running the tests needs it though, so it's only optional without tests.

meson.build

index 3ea4ac57d2f15eb2be972b91bf51b28d80f8a0e5..2de01fac9c6a9530c8dda2cec1fd412f9c8855fb 100644 (file)
@@ -461,7 +461,8 @@ if cc.get_id() == 'msvc'
   endif
 endif
 
-cairo_csi_dep = cc.find_library('cairo-script-interpreter')
+cairo_csi_dep = cc.find_library('cairo-script-interpreter',
+                                required: get_option('build-tests'))
 
 if not harfbuzz_dep.found()
   harfbuzz_dep = dependency('harfbuzz', version: '>= 0.9', required: false,